﻿using EPE.DALFactory;
using EPE.IDAL;
using EPE.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace EPE.BLL
{
    public class ShopsBuild
    {
        private readonly IShopsBuild dal = DataAccessFactory.CreateShopsBuild();
        public DataSet GetListByPage(string strProjectName, string strBuildName, string companyid, string orderby, int pageIndex, int dataCount)
        {
            return dal.GetListByPage( strProjectName, strBuildName,companyid,  orderby,  pageIndex,  dataCount);
        }

        public void Insert(CShopsBuild model)
        {
            dal.Insert(model);
        }
        public void Update(CShopsBuild model)
        {
            dal.Update(model);
        }

        public DataSet GetListByUpdate(string strId)
        {
            return dal.GetListByUpdate(strId);
        }

        public DataSet GetAllByProjectt(string companyid, string projectid)
        {
            return dal.GetAllByProjectt(companyid, projectid);
        }
    }
}
